import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class WechatLoginDto {
    @ApiProperty({ description: '微信授权手机号码的code' })
    @IsNotEmpty({ message: 'phoneCode不能为空' })
    @IsString()
    phoneCode: string;

    @ApiProperty({ description: '用户昵称' })
    @IsNotEmpty({ message: '昵称不能为空' })
    @IsString()
    nickName: string;

    @ApiProperty({ description: '用户头像URL' })
    @IsNotEmpty({ message: '头像不能为空' })
    @IsString()
    avatarUrl: string;

    @ApiProperty({ description: '微信登录code' })
    @IsNotEmpty({ message: 'code不能为空' })
    @IsString()
    code: string;
} 